<?php
header('content-type:text/html;charset=utf8');
session_start();
try{
	$link = new PDO('mysql:host=localhost;port=3306;dbname=kp5b_blog','root','root');
	$link->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);
}catch(PDOException $e){
	die('数据库连接出错:'.$e->getMessage());
}


?>